package com.kunag.builderFactory.demo1;

/**
 * @Title:
 * @Description:
 * 指挥者：负责指挥一个工程的构建
 * @Author: zx
 * @Date: create in 9:33 2020/8/4
 * @Version: 1.0
 */
public class Director {

    //指挥工人按照顺序建房子
    public Product build(Builder builder){
        builder.buildA();
        builder.buildB();
        builder.buildC();
        builder.buildD();
        return builder.getProduct();
    }
}
